<style scoped="scoped">

</style>
<template>
    <el-form :inline="true">
        <el-form-item>
            <el-button size="small" type="primary" @click="getData">查询</el-button>
            <el-button size="small" type="primary" @click="save">新增</el-button>
        </el-form-item>
    </el-form>
    <field-edit/>
</template>
<script>
import {ref, getCurrentInstance, onMounted} from 'vue'
import FieldEdit from './FieldEdit'
export default {
    name: "Field",
    setup(prop, context) {

        let {ctx} = getCurrentInstance();   // 组件上下文对象

        function getData() {
            ctx.axios.post('/field/')
        }


        onMounted(() => {

        });

        return {form};
    },
    components: {FieldEdit}
}
</script>
